<template>
    <view>
        <view v-if="noticDetil.contentType=='0'" class="titlenoti">
            {{noticDetil.title}}
        </view>
        <view v-if="noticDetil.contentType=='0'" class="detaldate">
            {{noticDetil.createdTime}}
        </view>
        <view v-if="noticDetil.contentType=='0'" class="conentdetal">
            {{noticDetil.content}}
        </view>
        <web-view v-if="noticDetil.contentType=='1'" :src="noticDetil.content"></web-view>
    </view>
</template>

<script>
    let uinfo;
    import request from "../../untils/request.js";
    export default {
        data() {
            return {
                noticDetil: []
            }
        },
        onLoad(options) {
            this.noticDetailsfn(options.id);
        },
        methods: {
            noticDetailsfn(id) {
                request.postMember('/user/commoninfo/queryCommonInfo', {
                    type: '3',
                    id: id
                }).then(res => {
                    if (res.code == '200') {
                        this.noticDetil = res.data.infos[0];
                    }
                })
            }
        }
    }
</script>

<style>
    .titlenoti {
        font-size: 18px;
        font-family: Source Han Sans CN;
        font-weight: 400;
        color: #333333;
        margin: 20px 23px 0 10px;
    }

    .detaldate {
        font-size: 18px;
        font-family: Source Han Sans CN;
        font-weight: 400;
        color: #ADB0BB;
        margin: 20px 0 26px 10px;
    }

    .conentdetal {
        font-size: 14px;
        font-family: Source Han Sans CN;
        font-weight: 400;
        color: #6E6E6E;
        margin: 0 23px 0 10px;
        word-break: break-all;
    }
</style>
